package com.grad.webstudy.constants;

/**
 * @Description: token常量类
 * @Author: zjf
 * @Date: 2020/1/19 14:21.
 */
public class TokenConstants {
    public static final long TOKEN_EXPIRES_MINUTES = 30;//设置token过期时间30分钟,单位为分钟
    public static final String TOKEN = "token";
    public static final int TOKEN_LENGTH = 40;//注意不要超过源字符串的长度，
    public static final String TOKEN_ORIGIN_STR = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
    public static final String TOKEN_LOGIN_CACHE_KEY_PREFIX = "token:login";
    public static final long TOKEN_THRESHOLD = 5;//token阀值，小于这个值时刷新token
}
